package com.crm.common.crm.entity.PO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 年度投放统计表
 * </p>
 *
 * @author zhangzhiwei
 * @since 2020-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bill_crm_roi_year_statis")
@ApiModel(value="CrmRoiYearStatis对象", description="年度投放统计表")
public class CrmRoiYearStatis implements Serializable {

    private static final long serialVersionUID=1L;


    @TableId(value = "year_statis_id", type = IdType.AUTO)
    private Integer yearStatisId;

    @ApiModelProperty(value = "消耗渠道")
    private String putinPlatform;

    @ApiModelProperty(value = "消耗时间")
    private String putinFormDate;

    @ApiModelProperty(value = "消耗金额")
    private BigDecimal putinMoney;

    @ApiModelProperty(value = "表单数量")
    private Integer leadsNum;

    @ApiModelProperty(value = "回款金额")
    private BigDecimal receivablesMoney;

    @ApiModelProperty(value = "预期回款金额")
    private BigDecimal expectReceivablesMoney;

    @ApiModelProperty(value = "平均ROI")
    @TableField(exist = false)
    private BigDecimal averageRoi;

    @ApiModelProperty(value = "实际ROI")
    private BigDecimal realityRoi;

    @ApiModelProperty(value = "实际客单价")
    private BigDecimal realityPrice;


}
